package com.village.zpark.service;

import com.github.pagehelper.PageInfo;
import com.village.zpark.pojo.Environment;

import java.util.List;

public interface EnvironmentService {
    public List<Environment> findAll();

    /**
     *根据id查询
     */
    public Environment findById(Integer id);

    /**
     * 新增一条乡村信息
     */
    public int addEnvironment(Environment environment);

    /**
     * 修改乡村信息
     */
    public int updateEnvironment(Environment environment);

    /**
     * 删除一条乡村信息
     */
    public int deleteEnvironmentById(Integer id);

    /**
     * 分页查询
     */
    public PageInfo<Environment> findPage(int page, int size, String param );

}
